#include "gillsans11.h"
#include <nds.h>

using namespace WoopsiUI;

static const u16 GillSans11_glyphdata[350] = {
/* '!' */	0xFD00,
/* '"' */	0xB680,0x0000,0x0000,
/* '#' */	0x244B,0xF922,0x5FD2,0x2400,0x0000,0x0000,
/* '$' */	0x7D28,0xC314,0xBE20,0x0000,
/* '%' */	0xE34B,0xA041,0x03CA,0xA700,0x0000,0x0000,
/* '&' */	0x3091,0x2187,0x31A7,0x3B00,0x0000,0x0000,
/* ''' */	0xE000,
/* '(' */	0x2949,0x2488,0x8000,
/* ')' */	0x8912,0x494A,0x0000,
/* '*' */	0x255D,0x5200,0x0000,0x0000,
/* '+' */	0x0008,0x4F90,0x8000,0x0000,
/* ',' */	0x0180,
/* '-' */	0x0001,0xC000,0x0000,
/* '.' */	0x0100,
/* '/' */	0x2524,0xA400,0x0000,
/* '0' */	0x7463,0x18C6,0x2E00,0x0000,
/* '1' */	0xFF00,
/* '2' */	0xE084,0x2211,0x1F00,0x0000,
/* '3' */	0xE116,0x111E,0x0000,
/* '4' */	0x118C,0xAF88,0x4200,0x0000,
/* '5' */	0xF88E,0x111E,0x0000,
/* '6' */	0x1111,0xE8C6,0x2E00,0x0000,
/* '7' */	0xF844,0x2211,0x0800,0x0000,
/* '8' */	0x7462,0xE8C6,0x2E00,0x0000,
/* '9' */	0x7463,0x1788,0x8800,0x0000,
/* ':' */	0x1100,
/* ';' */	0x1180,
/* '<' */	0x0002,0xE838,0x2000,0x0000,
/* '=' */	0x003E,0x0F80,0x0000,0x0000,
/* '>' */	0x0020,0xE0BA,0x0000,0x0000,
/* '?' */	0xD7A2,0x0000,
/* '@' */	0x1E30,0x96B6,0xDA4D,0x2695,0x3C41,0x9F00,0x0000,
/* 'A' */	0x1020,0xA144,0x4F91,0x4100,0x0000,0x0000,
/* 'B' */	0xE99E,0x999E,0x0000,
/* 'C' */	0x3918,0x2082,0x044E,0x0000,0x0000,
/* 'D' */	0xF228,0x6186,0x18BC,0x0000,0x0000,
/* 'E' */	0xF88F,0x888F,0x0000,
/* 'F' */	0xF88F,0x8888,0x0000,
/* 'G' */	0x3918,0x208E,0x144F,0x0000,0x0000,
/* 'H' */	0x8618,0x7F86,0x1861,0x0000,0x0000,
/* 'I' */	0xFF00,
/* 'J' */	0x5555,0x5800,
/* 'K' */	0x8CA9,0x8C52,0x5100,0x0000,
/* 'L' */	0x8888,0x888F,0x0000,
/* 'M' */	0x838E,0xAD59,0x3060,0xC100,0x0000,0x0000,
/* 'N' */	0x8386,0x8C99,0x3161,0xC100,0x0000,0x0000,
/* 'O' */	0x388A,0x0C18,0x3051,0x1C00,0x0000,0x0000,
/* 'P' */	0xF463,0x1F42,0x1000,0x0000,
/* 'Q' */	0x388A,0x0C18,0x3051,0x1C18,0x0C00,0x0000,
/* 'R' */	0xF228,0xA2F2,0x48A1,0x0000,0x0000,
/* 'S' */	0x7460,0xC106,0x2E00,0x0000,
/* 'T' */	0xFE20,0x4081,0x0204,0x0800,0x0000,0x0000,
/* 'U' */	0x8618,0x6186,0x185E,0x0000,0x0000,
/* 'V' */	0x8289,0x1222,0x8504,0x0800,0x0000,0x0000,
/* 'W' */	0x88C4,0x554A,0xA551,0x1088,0x4400,0x0000,0x0000,
/* 'X' */	0x8142,0x2418,0x1824,0x4281,0x0000,0x0000,
/* 'Y' */	0x8288,0xA081,0x0204,0x0800,0x0000,0x0000,
/* 'Z' */	0xFE08,0x2081,0x0410,0x7F00,0x0000,0x0000,
/* '[' */	0xF249,0x2493,0x8000,
/* '\' */	0x9124,0x8900,0x0000,
/* ']' */	0xD555,0x5C00,
/* '^' */	0x2295,0x1000,0x0000,0x0000,
/* '_' */	0x0000,0x0000,0x0000,0x03F0,0x0000,
/* '`' */	0x9000,0x0000,
/* 'a' */	0x0001,0xC13A,0x4F00,0x0000,
/* 'b' */	0x888E,0x999E,0x0000,
/* 'c' */	0x0039,0x2300,0x0000,
/* 'd' */	0x1117,0x9997,0x0000,
/* 'e' */	0x002B,0xE300,0x0000,
/* 'f' */	0x2974,0x9200,0x0000,
/* 'g' */	0x0000,0x74A4,0xC87C,0x5C00,
/* 'h' */	0x888A,0xD999,0x0000,
/* 'i' */	0x5F00,
/* 'j' */	0x5FC0,
/* 'k' */	0x8889,0xACA9,0x0000,
/* 'l' */	0xFF00,
/* 'm' */	0x0000,0x0769,0x3264,0xC900,0x0000,0x0000,
/* 'n' */	0x000A,0xD999,0x0000,
/* 'o' */	0x0006,0x9996,0x0000,
/* 'p' */	0x000E,0x999E,0x8880,
/* 'q' */	0x0007,0x9997,0x1110,
/* 'r' */	0x005D,0x2400,0x0000,
/* 's' */	0x0038,0x8E00,0x0000,
/* 't' */	0x004F,0x4443,0x0000,
/* 'u' */	0x0009,0x9997,0x0000,
/* 'v' */	0x0001,0x1528,0x8400,0x0000,
/* 'w' */	0x0000,0x0495,0x4A8A,0x1400,0x0000,0x0000,
/* 'x' */	0x0001,0x1511,0x5100,0x0000,
/* 'y' */	0x0001,0x1528,0x8442,0x2000,
/* 'z' */	0x000F,0x244F,0x0000,
/* '{' */	0x6925,0x124C,0x0000,
/* '|' */	0xFFE0,
/* '}' */	0xC924,0x5258,0x0000,
/* '~' */	0x0000,0x381C,0x0000,0x0000,0x0000,
/* 0x7F */	0xFE18,0x6186,0x1861,0x861F,0xC000,
};

static const u16 GillSans11_offset[95] = {
    0,    1,    4,   10,   14,   20,   26,   27,   30,   33,   37,   41,   42,   45,   46,   49,
   53,   54,   58,   61,   65,   68,   72,   76,   80,   84,   85,   86,   90,   94,   98,  100,
  107,  113,  116,  121,  126,  129,  132,  137,  142,  143,  145,  149,  152,  158,  164,  170,
  174,  180,  185,  189,  195,  200,  206,  213,  219,  225,  231,  234,  237,  239,  243,  248,
  250,  254,  257,  260,  263,  266,  269,  273,  276,  277,  278,  281,  282,  288,  291,  294,
  297,  300,  303,  306,  309,  312,  316,  322,  326,  330,  333,  336,  337,  340,  345
};

static const u8 GillSans11_width[95] = {
 1, 3, 7, 5, 7, 7, 1, 3, 3, 5, 5, 1, 3, 1, 3, 5,
 1, 5, 4, 5, 4, 5, 5, 5, 5, 1, 1, 5, 5, 5, 2, 9,
 7, 4, 6, 6, 4, 4, 6, 6, 1, 2, 5, 4, 7, 7, 7, 5,
 7, 6, 5, 7, 6, 7, 9, 8, 7, 7, 3, 3, 2, 5, 6, 2,
 5, 4, 3, 4, 3, 3, 5, 4, 1, 1, 4, 1, 7, 4, 4, 4,
 4, 3, 3, 4, 4, 5, 7, 5, 5, 4, 3, 1, 3, 6, 6
};

GillSans11::GillSans11(u8 fixedWidth) : PackedFont1 (
	33,
	127,
	GillSans11_glyphdata,
	GillSans11_offset,
	GillSans11_width,
	12,
	3,
	7,
	9
) {
	if (fixedWidth) setFontWidth(fixedWidth);
};
